package com.acme.concurrent;

import com.acme.concurrent.executor.ProducerConsumer;

import java.io.File;

/**
 * @author Gregory Sobko
 */
public class ConcurrentMain2 {
    public static void main(String[] args) {
        File root = new File("c:/Users");
        File root1 = new File("c:/db_0002");
        File root2 = new File("c:/Program Files/");
        File root3 = new File("c:/");
        long start = System.currentTimeMillis();
        ProducerConsumer.startIndexing(new File[]{root, root1, root2, root3, root, root1, root2, root3});
        System.out.println("Time: " + (System.currentTimeMillis() - start));
    }
}
